#include "stdafx.h"



//#include "../../utils/Utils.h"

namespace network
{
    namespace packet
    {

        CancelOperation::CancelOperation() :
			buffer::BasicBuffer(0, (boost::uint16_t)Event::EVENT_CANCEL),
			BasicPacket((boost::uint16_t)Event::EVENT_CANCEL)
        {
        }

        CancelOperation::CancelOperation(const buffer::BasicBuffer& buf) :
			buffer::BasicBuffer(buf),
			BasicPacket((boost::uint16_t)Event::EVENT_CANCEL)
        {
        }

        CancelOperation::CancelOperation(boost::shared_ptr< std::vector< unsigned char > > _receive_buffer) :
			buffer::BasicBuffer(_receive_buffer),
			BasicPacket(getId())
        {
        }

        void CancelOperation::handle(session_ptr _session, buffer::BasicBuffer& _packet)
        {
            CancelOperation cancelOperation(_packet);
            _session->on_packet(cancelOperation);
        }

    } //	namespace packet
} //	//	namespace network

